If a dock window is open and docked, but does not have focus (See attached screenshot) and you press the dock window button (Run in this case), only the focus changes. The dock window itself is not closed. Personally, I expect the dock window to close.
Pepijn Van Eeckhoudt

