Isn't https://github.com/google/angle just that?
Edit: I guess no, Angle is OpenGL ES. My bad.
Edit: I guess no, Angle is OpenGL ES. My bad.
In practice this is sufficient for the overwhelming majority of apps. Apple never went past GL 4.1 on the desktop side, and doesn't support most of the interesting desktop-only features (tessellation and geometry shaders, mostly), so ES 3.1 targets desktop macOS fairly cleanly.