public override void OnGUI(Rect rect)
{
if (((this.m_SceneView != null) && (this.m_SceneView.m_SceneViewState != null)) && (Event.current.type != EventType.Layout))
{
this.Draw(base.editorWindow, rect.width);
if (Event.current.type == EventType.MouseMove)
{
Event.current.Use();
}
if ((Event.current.type == EventType.KeyDown) && (Event.current.keyCode == KeyCode.Escape))
{
base.editorWindow.Close();
GUIUtility.ExitGUI();
}
}
}