There is no cross play between Windows and XBox (or PC/console in general).
Multiplayer is supported between Windows and OSX (and Steam / GOG / App Store), and there is save file compatibility between Windows, OSX and (using Steam cross saves) Switch.