I mean isn’t that how zoom and likes of it work?
You can either share a specific window (and need to switch off and share another if you want to share another app) or you can share entire screen.
If I understand correctly that’s what would be the solution here