/// <summary>
 /// Ensure the window is still active.  When entering or leaving Play mode, the window can be set to null.
 /// </summary>
 private void CheckEditorWindowStatus()
 {
     if (window != null)
     {
         window.Repaint();
     }
     else if (!killWindow)
     {
         ShowWindow();
     }
 }