Window control buttons out of place

With (1) vertical tabs on, (2) system and title bar borders hidden and (3) Appearance → Theme set to GTK or QT, window control buttons (close, minimize) are out of place in Linux with KDE DE.

How it looks:

Bad

How it should look:

Good