The somewhat similar mechanism on Windows is Alternative Data Streams. ADS are like named subfiles below your main file. If you squint pretty hard, unix xattrs look kind of similar -- they're also named binary objects attached to files. But xattrs are typically limited to much smaller amounts of data due to implementation details, and are also namespaced with some sort of integer enum (on Linux, "user" and "system" are common).
I would not really assume they're a portable construct, although commonly used unix-likes (Mac and Linux) both support them in their most popular filesystems.
[1]: https://learn.microsoft.com/en-us/openspecs/windows_protocol...
[2]: https://devblogs.microsoft.com/scripting/powertip-use-powers...
They were originally introduced in Tiger, by the way. https://arstechnica.com/gadgets/2005/04/macosx-10-4/7/
Extended attributes have existed in Linux for many years and are used extensively in security controls.
The two most common examples are likely access control lists (ACLs) and SELinux contexts.
For the latter, many commands (mv, cp, ls, ps, etc.) have a -Z option to preserve or view the SELinux context associated with a file/process.
Do people other than the OS tend to use these? Are they well-trodden and portable between OS's? I've seen Unity's .meta files and kind of haten them but assumed they were sort of the "the way"