I am using an undecorated form with custom buttons to maximize and close the application. I also want to add a button to minimize the app just like how it works when you click on the button as shown in the image. But I could not find a way to implement it, please help if you know how to emulate that button.