Remote Desktop Client (mstsc.exe) causes loss of focus

Seems there are quite a few threads about it on the web:

This one suggests it may be tied to how WSLg uses RDP:

And suggests this as the fix: