cocoa_common: order front window only when invisible

Window creation code always made mpv the front window. Fix it to make it front
only if the window is currently invisible.

Fixes #84