The (wedge-fit) viewport likely popped-off like a champagne cork after water entered at the front ring-CF interface (opposite that remaining large CF plank). As the hull shatters and collapses into the rear dome.
If water entered via the viewport then that would have behaved like a immense jet and popped the rear dome clean off since the CF hull (now as a pressure vessel) is stronger than the CF-rear ring interface and may have remained intact. Yes compressed gases do get very hot but that would only be after the volume is much reduced. The CF-rear ring would fail before the hull in this scenario.
Just my guess.
If the viewport is a cannon ball and you have a barrel and a bust disk.. yes in theory you can pop off the back hemisphere. the initial peak pressure of a solid mass 1 foot in diameter stopping instantly could but is unlikely exceed 18 million pounds force. But the energy of 6 million foot pounds (600,000 pounds force from the water being pushed 10 feet into the back of the sub) Could only theoretically push the rear hemisphere a theoretical maximum of 4 inches, because its being held by 18 million pounds force. This neglects the momentum of the water behind the rear dome which is also holding it in place!
so the reality is at best a cannon ball accelerated to 650 feet per second will probably crack the glue joint, but not materially separate the hull to the point that anything else fails. if you had a cannon ball and a barrel, the hydraulic peak pressure generated inside that barrel when the cannon ball stops at the rear dome would break the barrel and separate the back dome, but again, this is not what existed in real life. and, there's a good chance such an experiment would result in the cannon ball passing through the rear dome, if the barrel was stronger than the dome.
so in real life the idea that an initially broken stream of water passing through fragments of the viewport and hitting everyone inside, has enough kinetic momenum (again its only traveling at a maximum of 800 feet per second) to blow the back dome off.. is just fantasy. the reaction force never exceeds 2 million pounds force which is 1/9th that which is required to separate the rear dome from the front dome.
this also neglects the dampening effect of the uh, people, breaking up the initial stream.
remember that once the water passes through the view port, it is only slowing down from there, it does not collect any more energy on the way, You need a toroidal deflector spike to get the doubling effect of the force as the water flows back to the view port at 700 feet per second instead of 800. it didn't have one.
think of the viewport and the sub as a 6000 psi feynman sprinkler.
it doesn't move when the viewport pops...