How I can Create dashboard to new custom doctype

I wonder what Duplicate does to an existing DocType - that would be worth digging into - search here for pointers and do some trial and error learning?