Refactored the DockWindow platform specific code into a separate function that is called at the appropriate places.
Refactored the DockWindow platform specific code into a separate function that is called at the appropriate places.

enthought/traitsgui,brett-patterson/pyface,pankajp/pyface,geggo/pyface,geggo/pyface