There were quite a few code changes to enable the Document Library to work as a portlet. These have not been applied generally throughout Share. The areas that would need attention are mostly around how links are built - and because there are so many of them, the job is far from trivial.