"X" button reattaches a detached windows instead of closing it

Having the ability to detach the Sample/Plugin/Midi panes are great. But I always find myself hitting the red button instead of clicking the reattach icon.

Why not have the window close button function to where it reattaches said pane instead of closing it, having to double click to reopen and then click the reattach button.

Less steps and accomplish the same objective methinks.