The UN High Commissioner for Refugees has praised European countries welcoming people fleeing the war in Ukraine, whose numbers now surpass two million.