/// <summary>
        /// Switch between floating window and dockable window
        /// </summary>
        /// <param name="floating">should reopen the window as floating or not ?</param>
        void SetWindowFloating(bool floating)
        {
            s_FloatingWindow.value = floating;

            BrushTool tool = s_Instance.tool;

            GetWindow <PolybrushEditor>().Close();
            MenuItems.MenuInitEditorWindow();

            s_Instance.SetTool(tool);
        }