Although the main building is not open to the public, the official residence of the Portuguese government may be visited by prearranged, guided tours.
It's not unusual for tour guides to sneak into the Portugese government's official residence.