Interesting.  I wonder if we want to support not bringing the app into the foreground, for example if the button was "play/pause music" ?  Right now I don't think we have an API for minimize/maximize of window, so its fine to bring to front by default.