Submarines are usually not equipped with external electrical outlets.
Just run a stension cord out a winder.
IIRC, didn’t the Navy provide power to some parts of Kauai after Hurricane Iwa by using some sort of ship-to-shore power rig?
Yes they are. Attack submarines have two in the engine room and one up forward. This is how they connect to the shore connections. These are used to get power from the shore facilities, however it is possible to reverse the power, but there are safety devices installed. In addition to this, if you were to connect this to an entire city it would drain the reactor of a submarine very quickly.
They tried that but every time the sub submerged the GFIC would kick and the whole thing would shut down.
Nor screen doors.