Hi,
Starting with Windows 10 version 2004, Projecting to this PC requires having the Wireless Display optional feature installed, also note that you must be signed in as an administrator to be able to enable/disable projecting to this PC.
More information here:
https://www.tenforums.com/tutorials/157692-install-uninstall-connect-wireless-display-feature-windows-10-a.html
(Please don't forget to accept helpful replies as answer)
Best regards,
Leon