private void MoveTab(DockingGroupTabItem item, DockingGroupTabItem targetItem, TabGroup parentTabGroup)
        {
            ManagedItem.View.DockManager.LockActiveView();
            parentTabGroup.Move(item.View, parentTabGroup.Items.IndexOf(targetItem.View));
            ManagedItem.View.DockManager.UnlockActiveView();

            item.ReorderManager.ItemMoved = true;
        }
        private void MoveTabToPosition(DockingGroupTabItem item, DockingGroupTabItem targetPosition, TabGroup parentTabGroup)
        {
            ManagedView.DockManager.LockActiveView();
            parentTabGroup.Move(item.View, parentTabGroup.Items.IndexOf(targetPosition.View));
            ManagedView.DockManager.UnlockActiveView();

            item.ReorderManager._itemMoved = true;

            if (ManagedView.ParentContent is IInputElement)
                _mouseXForFloatingWindow = Mouse.GetPosition(ManagedView.ParentContent as IInputElement).X;
        }