I use VSCodium in Distrobox daily on Alpine Linux, and it works flawlessly. I don’t experience the problem you encounter but I use KDE Plasma which I suppose handles it differently.
I am however looking into slowly moving over to KDE’s Kate for development, my laptop really doesn’t like opening multiple chrome instances for the various instances of VSCodium and then also an Android emulator on top of that.