I made no changes to the source code and I get the result shown in the below screenshot. I noticed that I can drag the window by holding mouse on the black bar, the buttons events occur in the black location where the buttons should be located however the icons are displaced below it.
