There is no enabling required. If you have a Microsoft account, which you must if you own an Xbox, and your friend has bought their PC copy from the official Microsoft Store, you can cross-play with them directly.