Apple had a feature like this, I believe it was inherited from OpenStep, where an application could advertise "services" that would appear system wide. I don't know if it's still a thing, but this workflow of "highlight text and submit to ChatGPT" seems like it would be a good fit.