Add custom buttons to titlebar

Add custom buttons to titlebar


How would I go about adding more custom buttons to the titlebar,
similar to the 'x' button that closes the window? I am trying to add a
'-' minus button that minimizes the windows..
Any thoughts?