Open menu when loosing focus of main window