There is pretty cool
stb_tilemap_editor.h one header library from Sean Barrett. If tilemaps is enough, check it out for ideas how to write level editor.
There are two videos that show it in action:
https://www.youtube.com/watch?v=f9sdvwTBBOg
https://www.youtube.com/watch?v=lN3Js-7r6BA