There are much simpler ways -- look at the sibling comments.
Putting those aside: I am sure you could save the Gmail HTML/JS locally, give it to an agent, and have a Gmail client in a day
Even putting LLMs aside, people have been doing this kind of thing for a long time. Reverse engineering is not new.