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 ...