The current code mandates that ships be one wagon and one engine, and wagon-engine pairs can't couple to each other to keep weird things from happening. It might theoretically be possible to change this (assuming the "tug" in your picture latches on from the back and not the side?), but would be a major rewrite. The "tug" would have to be two locomotives back-to-back so that it could reverse away from the barge, could easily end up "backwards" relative to the barge, and the station stops would be an annoying array of ports and combinators. And you'd have to somehow correct errors by "shunting" manually, without the ability to get out of one wagon and into another (because they are on water).