Custom editor like sprite editor

My aim is to make Custom Editor like Sprite Editor. I mean, in the Sprite Editor, I want to make features like the larger the Canvas of the sprite, the larger the Transparent screen, or the box positioning. But I don’t know how to do it. I don’t know what to search on the internet, can you help?

(The Transparent part here is larger than the other picture)

Here is the box positioning.

Here is the box positioning

All the pictures in order. Sorry

8120426--1052417--resim 1png.png
8120426--1052420--resim 2.png