mac: Add app.dock.hide()/show() APIs, closes #422.