Intelligent Whale Porthole interior details
Notice the threaded locking ring to hold either glass or some other object in place in the porthole. Also the hinge mount for some kind of cover or plug to be swung into place. My guess is that this was indeed a viewing porthole and that the cover was to keep light from getting out of the submarine to reveal its presence in hostile waters.