titleBarButtons - A list of buttons to be displayed in the titlebar.
The default list is: [ "pin", "minimize", "maximize", "close" ].

In order to change the visible buttons, user should customize that list.

The code below demonstrates the use of titleBarButtons option.

<div id="window" />

<script type="text/javascript">
    jQuery(function($) {
        //initialize Window widget with only maximize and close buttons visible
            titleBarButtons: [ 'maximize', 'close' ]