private static void Internal_CallGlobalEventHandler()
 {
     if (EditorApplication.globalEventHandler != null)
     {
         EditorApplication.globalEventHandler();
     }
     WindowLayout.MaximizeKeyHandler();
     Event.current = null;
 }
        static void Internal_CallGlobalEventHandler()
        {
            if (globalEventHandler != null)
            {
                globalEventHandler();
            }

            // Ensure this is called last in order to make sure no null current events are passed to other handlers
            WindowLayout.MaximizeKeyHandler();

            Event.current = null;
        }