Merge Windows Menu Option

I opened three script windows, then did Windows>Merge All Windows and it worked perfectly.

Then, I dragged the tabs out of the window, and the Merge All Windows option was inactive.

I opened a new script and the menu option came back, but when selected it only merged the new window with the front most of the three existing windows.