Can I use AirPlay to have an external screen on a Mac?

I've read the description of using Apple TV via AirPlay to show a second screen in an iOS app.


https://developer.apple.com/library/content/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/UsingExternalDisplay/UsingExternalDisplay.html


Is it possible to do the same kind of thing from a macOS application?

Is it documented?


(I apologize for not simply trying it, but I don't currently have a hardware configuration that will let me.)

Can I use AirPlay to have an external screen on a Mac?
 
 
Q