Added UserInterface::ensureMainWindowIsActive()