private static LayoutAnchorable WrapViewInNestedDockManager(FrameworkElement view, object tag = null, bool canFloat = false)
        {
            var nestedDockingManager = new NestedDockingManager();

            nestedDockingManager.DataContext = view.DataContext;

            var layoutDocument = new BindableLayoutDocument(view, null, true);

            layoutDocument.Title       = string.Empty;
            layoutDocument.CanAutoHide = false;
            layoutDocument.CanClose    = false;
            layoutDocument.CanHide     = false;
            layoutDocument.CanFloat    = false;

            nestedDockingManager.AddContentDocument(layoutDocument);

            var layoutAnchorable = new LayoutAnchorable {
                Title = ((IViewModel)view.DataContext).Title, Content = nestedDockingManager
            };

            return(layoutAnchorable);
        }