Is there anyway to Maximize/Restore a docked or undocked window? I am working on an application and would like to add a button to the windows that would maximize or restore the window....I noticed that the double click on the pane header will do this but how would I go about adding the same functionality to a button instead?