Center dialogs in the window position