Keep preferences dialog above main window