Karine Bosch has a great little blog that shows you how to create SharePoint-like Application Pages using the OOTB control templates and also has a great piece of source that wraps the Content Query WP's Select Site/List/Item dialog (LaunchPickerTreeDialog). Very handy.
http://karinebosch.wordpress.com/