One issue I have been struggling a lot with is handling window resizing, scaling the UI to match the new size of the window.

It should be a simple thing, but Jetpack compose is written with mobile UI in mind, and the documentation for doing this has therefor been hard to find.

I finally managed to find it out how it is done. It was as simple as one could expect.

But grief there was a lot of websites pointing me in the wrong ways.

Prepare for scalable UI!