This is possible because of the "Project to this PC" feature available on Windows for devices equipped with Miracast ...
A Miracast-based device from Microsoft that plugs into a TV, projector or monitor via HDMI and USB. Starting with Windows 8, the Wireless Display Adapter (WDA) lets a Miracast-enabled Windows PC ...
Miracast is a screen-mirroring protocol that lets you broadcast anything from an Android device or recent Intel computer to your TV. Whatever you see on the small screen will appear on the big screen.