Apple holds a patent on magnetic charging, Microsoft holds a patent on magnetic charging + data ports, as well as a patent on magnetic USB-C now. I'm not sure how well these would hold up against Apple's patents in court, but I think the two companies both have so many lawyers and so many patents that there's a bit of a mutually assured destruction situation with either going after the other on charging technology.