Hydrodynamic response of inhomogeneous metallic systems