You are hanging 200 meters from the ground by a flagpole. The only way to survive is to break a guy's apartment window and jump in. Breaking the window is morally good because you can safely assume that the owner of the apartment would want you to break his window rather than die. Therefore, you have implicit consent to break the window.
However, what if the owner of the apartment is in the apartment and explicitly tells you he'd rather you die than break his window? How can you morally break his window?