Unitary Dynamics for Open Quantum Systems with Density-Matrix Purification