How to create custom post type like Page

You should have a look at the register_post_type page in the codex. Look at the hierarchical argument when registering your post type

hierarchical
(boolean) (optional)

Whether the post type is hierarchical (e.g. page). Allows Parent to be specified. The ‘supports’ parameter should contain ‘page-attributes’ to show the parent select box on the editor page.

Default: false