Quantum-mechanical interpretation of density functional theory