Code: how to call search window?

Anyone have a code example of invoking a search screen for ex. a part?