private static void CheckDragWindowExists()
{
if (DockArea.s_DragMode == 1 && !PaneDragTab.get.m_Window)
{
DockArea.s_OriginalDragSource.RemoveTab(DockArea.s_DragPane);
UnityEngine.Object.DestroyImmediate(DockArea.s_DragPane);
PaneDragTab.get.Close();
GUIUtility.hotControl = 0;
DockArea.ResetDragVars();
}
}