ahhh. I like these, lets see. If you can walk her in from the end of the pier that would be by far the safest.
If you can make fast to the opposite bank you could warp her back stern first into her slip with a bit of cursing. alternately anchoring
close to the bank, and doing the same.
But the real flashy (but potentialy very messy options) would be to drop your main on stb tack. tack to port just on the corner of the berth and use the backed headsail to turn her quick. then drop it real smartly and head
in bow first with a handy spring to stop her...
Alternately full sail. light airs. tack past the berth real close and real slow on port tack. tack to stb keeping the jib backed and back the main by hand. With lots of luck and practice this might neatly reverse you into your pen. if it all goes pear shaped ease the main back across. tack the headsail and sail out to regroup and let the shaking stop!
I guess if you had a line waiting on the corner of the pen you could snatch it with the boathook as you slowly glided past. Use it to stop and then guide the stern in, having dropped sail just before you grabed the stern line.
both of these flashy options I would love to see someone else try, not sure I would be game
on anything bigger than a potter!