setResizable(false) removing close and minimize buttons on mac

Hello,

I use macOS 10.13.5

When I setResizable to false the window not only becomes unresizable but also loses the close and minimize buttons in the top left hand corner. Is this a bug? Or am I missing a setting?