I’ve tried implementing focus-follows-mouse on macOS. It’s possible to do, but complicated, because changing focus to an arbitrary window can “mutate” it: popovers will disappear, and selections will shift under your mouse. I don’t think Linux or Windows really support these so they don’t have to deal with this.