This is possible because of the "Project to this PC" feature available on Windows for devices equipped with Miracast ...
If after you update or upgrade Windows 11/10 to a newer build or version, you notice that Miracast is no longer working, as in you’re unable to cast to devices, then you can try the solutions ...