Minimize And Maximize An application

How to minimize and maximize an application for all plateforms using code , like application minimization and maximization in PC?

you can make the game run fullscreen (or exit fullscreen mode) by editing Screen.fullScreen to true/false , as for minimization, if the game is running in a window you can use the basic windows buttons in the topright corner to put it on tray