Maybe an interesting remark:
Since in the dll I'm currently writing, all dialogs will be executed modally,
I tried to be clever and put the line Application.DocumentManager.DocumentActivationEnabled = true;
in Initialize(), but that doesn't work.
Thanks again for your reply.