Introduce MacWindow class

It has a helper to foreground the window even in cases where it does not work
https://bugreports.qt-project.org/browse/QTBUG-40403