LookandFeel for document window buttons?

I can’t seem to find how to define a new lookandfeel for the document buttons such as close, minimise buttons. Which function do I need to override? Cheers.

search for createDocumentWindowButton()