Improve split and tab behavior
Toggle maximized views before detach, split, move, and close.
Enables detach-view in the target window if dropping creates the first split. Disables in the original window if one view is left after DnD.
Disable "detach-tab" action for last tab after closing others.
Edited by Nathan Sprangers