This was kind of tried in the early 90s with Adlus Intellidraw
It's sad there's no videos or detail image oriented reviews but it had WYSIWIG interface and you could set various constraints
https://tidbits.com/1992/12/07/intellidraw-review/
It failed in the market to Illustrator. I think it's possible only programmers who think constraints are interesting and for the most part designers and artists don't. Even in 3D programs like Maya/3DSMax/Blender I know of few artists that setup constraints. I've been told it's mostly because constraints get in the way. Maybe the point is before you know what you want to draw you need the freedom to just experimient. Only after you know what you want would it make sense to go add constraints but now you've moved to something artists don't want to deal with so they pass it on to someone else.