If you can't open a door you won't be able to open the window, so the aircraft will already have to be depressurised. I imagine it's more to do with a rescue situation, the rear of the aircraft will sink first, so rescuers will have to access through the front. If the windows are already open it saves a person unfamiliar with how to open the cockpit window from struggling. It also enables a quick escape by the pilots!