Writing a letter to the pope is going to the bathroom. It can be used in reference to taking a shit or a piss
Don't go into the bathroom. John is in there writing a letter to the pope.