do not use Cocoa UI stuff in the context of the Dock process

this would hang Dock and cause 100% CPU load on one core