Ho do i create edges like the one used on the corner of this object
You have to select the edge, press Ctrl + B , that way you bevel the edge.

If then you want to replicate the difference in length, as in the picture, you have to select the two vertices on one side and press G two times to Edge Slide.

The vertices should slide on adjacent edges getting closer or further from each other.