Difficult in a larger ship. I had to do it once when the engine was down. Brisk conditions, tack, tack through the moored boats right to the head of the harbour... (Tarbert, Loch Fyne, Scotland), turn, kill sails and ghost dead downwind. It was a long pontoon, so we could get a man ashore early and stop the ship with warps.
Out of necessity only... it gave me the jitters.