I believe that at present using a proxy server with RD is not supported. However, we are aware that this is something that a lot of users need, and are working on it.
https://github.com/rancher-sandbox/rancher-desktop/issues/897 is one of the relevant issues but from the looks of it there are multiple pieces to it - it's a complex thing.