Hide main window instead of closing it

Hello,


does anyone know if there's a way to configure the app to hide its window when the user clicks on the red close button in the title bar, instead of quitting? If so, how?