Apple claims this is possible on Android:
'Use Family Sharing with Apple Music on Android'. Click on this link to learn how -->
https://support.apple.com/HT212154
"How to start and manage your own family group
When you get an Apple Music family subscription, you can start and manage a family group to share your subscription."
As for Windows, you cannot set up FS on Windowss but you can participate if invited.
Use Family Sharing to share iTunes Store purchases on PC
https://support.apple.com/guide/itunes/family-sharing-itns42f7b0d0/windows
"To use Family Sharing, you need an Apple ID, and you must be invited to join a family group."