Here is some code that demonstrates how to use the SharePoint People picker PeopleEditor control inside a WebPart.