That doesn't work for windowed mode, it just makes it full screen.
If my only recourse is full screen I'd rather handle that in events as the desktop doesn't have a mechanism to deal with getting out of full screen built in like the browser, esc, f11 etc.
Minimize, and maximize buttons in windowed mode just seem like less of a pain in the neck and more like how regular apps work.