public void DoWindow(int windowID)
{
GUILayoutGroup topLevel = GUILayoutUtility.current.topLevel;
if (Event.current.type == EventType.Layout)
{
topLevel.resetCoords = true;
topLevel.rect = this.m_ScreenRect;
if (this.m_Options != null)
{
topLevel.ApplyOptions(this.m_Options);
}
topLevel.isWindow = true;
topLevel.windowID = windowID;
topLevel.style = this.m_Style;
}
else
{
topLevel.ResetCursor();
}
this.m_Func(windowID);
}
}