I’ve entertained this concept many times. I spent many nights on Sakakawea in 30-38’ cabin
cruisers w living quarters.
The right weather for an open smaller boat would be crucial. Condensation alone could ruin your night and the next morning.
You’re better off pulling the boat up into shore...