Many-body localization from the perspective of quantum thermodynamics