[1] https://learn.microsoft.com/en-us/windows/win32/controls/lis...
[2] https://www.geoffchappell.com/studies/windows/shell/comctl32...
These are non-trivial things.
Now that I’m thinking about it, I still don’t have convenient sandboxing of desktop apps.
BTW you can have easy app sandboxing today using flatpak, works like a charm on Fedora.
Allegedly [1] a lot of popular packages use "--filesystem=host", which completely defeats the security of sandbox by granting access to the user's home directory (i.e, allows arbitrary code execution through modification of configuration files).
I think I would rather trust the browser's sandbox, where sandboxing has been in place from the start and applications are designed for it.
Ultimately it comes down to who you trust the most. Do you trust your cloud provider to not look at your data and sell you off or do you prefer trusting your local application to not fuck around where it shouldn't?