Pulling a subwindow out of panel so that it is a stand alone window

I have a panel set up in a particular experiment that I use for analyzing data. I will select data files from a list box and then as I click on them they are automatically plotted in two subwindow graphs, showing the data in different forms. But I'd like to be able to take one of these subwindows graphs and duplicate it and pull it out as it's own graph window. So I can format the graph differently and save the picture without changing the panel that I have made. I'd like to keep the panel for quickly viewing many different sets of data.

So basically I'm asking, is there way to take a graph that is a subwindow of a panel and make it it's own graph window? I could recreate the graph, and probably change the coding so that this is the solution, but I was just curious if there is a simple way to duplicate a subwindow graph.
thanks,
brian
I don't know how complicated your panel is. So that may not be what you want, but maybe it is a useable solution to rather have an external panel attached to a graph. I use such a panel to fiddle around with data in a graph, and when I like what I got I just close the external panel to have the "remaining" usual graph window for further styling.

Here's some code to get you started. As you may notice, I use a window hook to pull up the panel. You can pull the window names from somewhere else, of course:
NewPanel/HOST=$s.WinName/N=$(s.WinName+"_sub")/EXT=0     // create a side panel
TitleBox test1 ...   // create controls
Button test2 ...
...
// set hook for subwindow to handle events (e.g. closing)
SetWindow $(s.WinName+"#"+s.WinName+"_sub") hook(SubWindow)=SubGraphHook
SetActiveSubwindow $s.WinName        // restore focus to main window

and then ...

Function SubGraphHook(s)         // named hook function of subwindow
    STRUCT WMWinHookStruct &s
    if (s.eventCode == 17)
        do stuff after closing the panel ...
    endif
End