At what cost?
Google Docs is run a by a trillion-dollar corporation, they have the resources to rebuild it in canvas.
Figma isn't based on canvas, it's based on WebGL. And here's what Figma had to say about it: "Pulling this off was really hard; we’ve basically ended up building a browser inside a browser... We’ve implemented our own rendering engine" [1]
Good luck getting text to render properly on your own.
Just because there are two great examples made at great cost doesn't mean it's scalable to all other apps.
[1] https://www.figma.com/blog/building-a-professional-design-to...