This sample is derived from the Drag Creating sample. The difference is that the node template has been augmented to always show two brown labels showing the width and the height of the node.

Note how the labels are automatically updated as the user resizes a node.