function DoUnDock(NewTarget: TWinControl; Client: TControl): Boolean; dynamic;
DYNAMIC bool __fastcall DoUnDock(TWinControl* NewTarget, TControl* Client);
Undocks a control that is currently docked to the windowed control.
DoUnDock is called automatically when a control is undocked from the windowed control. It handles all necessary changes to the windowed control to accomplish the undocking. These are
1.Generates an OnUnDock event.
The NewTarget parameter indicates the new host to which the undocked control is moving.
The Client parameter indicates the control to be undocked from the windowed control.
Override DoUnDock to change the way controls are undocked from the windowed control.