Question [Q] Is it possible to write a new Gmail app?

I want to make a better Gmail app but I still want to use my Gmail as the "backend," is this possible?