.osx: Minimize windows into their application’s icon

Closes #271.