door gasket installation

What is the correct way to install door gasket?

what kind of appliance is it?