Nonequilibrium Lifshitz theory as a steady state of a full dynamical quantum system