More countries should do this; Germany and my home country the Netherlands in particular. I live in Berlin currently as a foreigner (perfect place for that). Lots of people from all over eastern Europe live here, lots of companies here outsource all over eastern Europe, lots of people that I know either come from or have friends/family from the Ukraine. Also, about 200k people of Russian origin live here that chose to move here after the wall fell. And I assume quite a few Ukranians.
I remember meeting refugees from the former Yugoslavia in the nineties. I think 25 years later, a lot of those people did pretty well. I actually visited Bosnia for work last summer and met a guy that went to school in Munich. Likewise a lot of Syrian refugees that ended up in Germany seem to be doing OK. Quite a few ended up here in Berlin. In times of war, people are generally grateful if you accommodate them; even if it isn't always with open arms.
It's usually the smart, free thinkers that need to flee. Incidentally those are also people likely to find a way to make it in life; start businesses; or otherwise be generally successful.
The US is full of such people that emigrated there after various wars in the last century. Now is not a time to be xenophobic about this sort of thing.