Below is a snippet of code to allow you to popup a lookup window for the entity of your choice. Use this on a form or from a ribbon button