You can re-dock an undocked tab using either of the following methods.
on the undocked tab, click the dock-back button (the middle button on the top right of the panel)
on the undocked tab, click the collapse button (left button on the top right of the panel) to temporarily minimize the panel