ShowUtility() to make a hovering EditorWindow

Hello!
I am trying to make my EditorWindow hover above unity Editor (like Wizards do) using ShowUtility().
But it seems I am making a mistake somewhere…
It hides when I click outside the window.

static LevEditWindow window;

    [MenuItem("LevelEditor/LevEdit Window")]
    static void Init()
    {
        window = (LevEditWindow)EditorWindow.GetWindow(typeof(LevEditWindow));
        window.ShowUtility();
        
    }

So the question is: how to do it right (so it hovers like a wizard)?
Thanks for help! :slight_smile:

I just checked - EditorWindow.ShowUtility() works just fine in Unity on Windows.

On Unity on the Mac, it has no effect whatsoever.

Unless there’s some trick, which I hope there is, and I would love to hear about.

I too am very interested in how to get this to work on the Mac. It makes it a lot harder to work with custom editor windows on the Mac!