windows title bar closed by mouse

windows title bar maximize and restore by mouse