Prevent an EditorWindow from closing in OnCloseWindow?

How would one go about that? I’m looking for something similar to how the application quit can be cancelled in OnApplicationQuit.

Hello, @AngryAnt . Did you ever find a solution to this?

Thank you in advance!

  • S.