Exception in multiple UI thread

In an application with use the single instance and each main window has
its own UI thread, if two windows are create and shown at the same time
is throw an exception when try to paint the dockpane caption