Good day EpicGamer! I am glad to be able to provide assistance to you today. There is no direct outright way in doing this at the time being and as far as the interaction goes with the Xbox controller to the PC is that you can only utilize it as a mouse by using an application Gopher360 and you can also check out the link below for reference but apart from that I would suggest to check out and try Unified Remote in which it is available in IOS and Android and from there you can unlock your PC with the use of your smartphone instead.
https://www.windowscentral.com/how-use-xbox-one...
https://www.unifiedremote.com/tutorials
___________________________________________________________
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
___________________________________________________________
Regards,
Paul R.