[PLAT-5343] Make sure dialog box is at the top