Try Setting the Maximum , Minimum Width and Height to same value.
but still the close button will be visible.