I tried that also and it doesn’t work on attended robot. The only solution I used is by just resizing the RDP window into a small square box, without minimizing it.
and for your information, you don’t have to worry about this much if you are planning to use unattended robots.
Community Edition won’t work when you minimized the screen or close the window.
If you want to work with them you have to use Enterprise Edition and if you take Unattended BOT license then you don’t have to worry about this. It will work without any issue.