built-in level editor

Hello I was wondering if anybody has a clue on how to make a built-in level editor ??? I have seen them in many things but never have actually found one!