I'm sure that could be done, but it would be a complicated way to do things!
The simplest solution in your case would probably be to enable the "Unattended Access" features of TeamViewer.
![TeamViewer Interface](https://cdn.statically.io/img/i.sstatic.net/74lEo.png)
By setting up "Easy Access" and enabling TeamViewer to start with Windows, you'll be able to connect to TeamViewer and interact with the Windows login screen.
Note that this does place a degree of trust in the security of TeamViewer and your TeamViewer account. Should either be compromised, the attacker would potentially be able to connect to your computer in the same way that you can.
The most common approach for this kind of thing is to connect to your network via a Virtual Private Network (VPN) server, which you can run on a Raspberry Pi.
You would then expose the VPN to the internet and connect to the VPN from wherever you are in the world. Once connected, you would able to connect to your computer as though you are on the same network. You could then use the "Remote Desktop Protocol" to connect to your Windows computer, which is the native equivalent of TeamViewer.
This way, you wouldn't be reliant on TeamViewer. However, you would need to keep your VPN server secure to prevent someone connecting to your network.
50000
, not the default port) and you'll need to allow traffic between the VPN and LAN interfaces. While the throughput is limited by the ISP upload speed, AES-NI CPUs process encryption more efficiently.50000
to prevent thousands of blocked connections daily (port scanners will generally not scan all 65,535 ports). If the VPN server is set up on the router: RDP port needs a port redirect from router's VPN interface to router's LAN interface andrdpIP:rdpPort
; If the VPN server is set up on the PC: Port redirect from router's WAN interface to LAN interfaceIP:VPNport
for the VPN server running on the PC.