Surface‐embeddability approach to the dynamics of the inhomogeneous Heisenberg spin chain