Avoid calling makeKeyAndOrderFront twice