Most cupboard doors will sag over time because the hinges have become loos in some way. You can check the door to see which screws have loosened, then quickly tighten them with a screwdriver.