Separated adding new dispatchers to the DispatcherWindow from setting the current one.

[ci skip]