Playing with your friends on Windows 10

How does one play with friends on windows 10? The invite system seems to not work and I’ve seen literally nothing on this topic on the internet.

More specifically, when I invite my friend or he tries to invite me, the invite simply does not appear.