would be a nice idea for an abstraction object mb.
simply close the window, or move it to 5000 5000,
and have a little "button" subwindow opening
instead on the screen, which bongs back the
original state when you click it.
A mac only way is to use applescript via the [shell] external. This message will do it, although I think you do also need to enable access for assistive devices in the universal access tab of system preferences if it isn't already.
osascript -e 'tell application "System Events"' -e 'click menu item "Minimize" of menu "Window" of menu bar item "Window" of menu bar "1" of application process "MaxMSP"' -e 'end tell'