I have two main ways i build dungeons.
1. I have a test/general building mod where i just mess around and make stuff i think might be fun or cool. Diferent ways to do puzzles, combinations of verious kits (cave and imperial ect)
2. layout design. se an image somewhere, or are inspired from another game and then go and recreate that place/idea.
to build a good dungeon comes down to setting goal and keeping them. What kind of dungeon is it, what monsters will be found there, how large is the place, consider all those things, write them down if need be, and stick to them. For the layout, plan out what you want in the dungeon, things like puzzles, how complex they should be, path complexity (straight path, or are there branches, alternate rutes, boss room, all this is helpful to have written down as guidelines.