Is there a way to look at the code of built-in apps?

Unfortunately no.