Microsoft’s new Wireless Display app lets you cast your Windows or Android screen to an Xbox One, and it works with PC games OnMSFT.com: "One the blue cast screen is loaded, you can connect to it just like you would any other Miracast display, by going into the display menu (via the Win P command) and select XBOXONE. If you intend to control the PC from the Xbox such as for playing games, make sure to tick the box to enable keyboard and mouse input from the Xbox."
"If all goes well, you should be able to easily switch between mouse and gamepad inputs by simultaneously hitting the view and menu icons on the gamepad. From our end, we were able to get mouse input to work just fine on the Surface Go, but had trouble getting the gamepad to work in a game of Minecraft. On the other hand, Asphalt 9 worked just fine, so it’s hard to understand what the limitations are for the controller support. However, it doesn’t seem to work on Android devices at all as of the time of this writing."
"From the PC side, you can also switch between various screen latency modes, Gaming, Working, and Watching videos from the connection bar at the top of the screen. Despite the latency option, though, watching protected content such as that on Netflix is a no go."