Haha, the old Java GUI builders in the 90s did something like this. You could either drag around the window (and the code would be updated) or modify the code (within limits) and it would parse it into the GUI builder.
Who's old enough to remember the Symantec Visual Cafe IDE?