Microscopic and macroscopic perspectives on stationary nonequilibrium states