This version of Unity is unsupported.

EditorWindow.OnBecameInvisible()

Description

Called after the window is removed from a container view, or is no longer visible within a tabbed collection of EditorWindow.