internal static DeleteWindowLayout Show(Rect r)
        {
            DeleteWindowLayout w = GetWindowWithRect <DeleteWindowLayout>(new Rect(r.xMax - (k_Width - k_Offset), r.y + k_Offset, k_Width, k_Height), true, L10n.Tr("Delete Layout"));

            w.m_Parent.window.m_DontSaveToLayout = true;
            return(w);
        }
        public static void DeleteGUI()
        {
            View view           = WindowLayout.FindMainView();
            Rect screenPosition = view.screenPosition;
            DeleteWindowLayout windowWithRect = EditorWindow.GetWindowWithRect <DeleteWindowLayout>(new Rect(screenPosition.xMax - 180f, screenPosition.y + 20f, 200f, 150f), true, "Delete Window Layout");

            windowWithRect.m_Parent.window.m_DontSaveToLayout = true;
        }
        public static void DeleteGUI()
        {
            View mainView        = FindMainView();
            Rect rect            = mainView.screenPosition;
            DeleteWindowLayout w = EditorWindow.GetWindowWithRect <DeleteWindowLayout>(new Rect(rect.xMax - 180, rect.y + 20, 200, 150), true, "Delete Window Layout");

            w.m_Parent.window.m_DontSaveToLayout = true;
        }
 public static void DeleteGUI()
 {
     DeleteWindowLayout.Show(FindMainView().screenPosition);
 }