Nonequilibrium thermodynamics of spacetime: The role of gravitational dissipation