Replacing door gasket

I’ve just ordered part number AP3039163. What is the proper way to install the gasket?