Moves a panel to an outer edge of the remaining layout.
Current tree.
Panel to move.
Destination edge.
Id for the new root split.
A new validated layout.
If no other panel remains.
Moves a panel to an outer edge of the remaining layout.