Drop its padding and border for a divider along the top, so it sits flush against the sidebar as Xcode's editor does.
Show each file's declared types under it, with a browse popover when there are many, and reveal a type's declaration when it is chosen.
List the library's files in the sidebar with new, import, rename and delete, and edit each in the code editor, which now colours by syntax.