Bugfix
(User-visible)
It is possible to move a component to a new browser window.
If a component in a dialog is swapped to a new window, this works and the toolbar is displayed normally.
When the dialog is closed, the external window remains open. If the dialog is opened again, the content is updated (according to a possible new model). However, the toolbar is empty.
Cause
Because the dialog is closed, the toolbar is removed from the underlying component. Furthermore, when the dialog is opened again, a new control is created, especially for the underlying component of the undocked view. As a result, there are 2 controls for the same view and the new control gets the new toolbar.
Solution
The DialogWindowControl is not created again and again but reused.