Make sure that the dialog appears on top, instead of behind other windows