Creating detached windows

Just tried this basic code on my Linux box with PopOS:

I can’t even run a resizable window on my Linux system. No wonder the other demo won’t work!

Original demo runs ok on Windows11 and MacOS.