I've made a short example of how to make a click and drag room, like seen in games such as Prison Architect and Theme Hospital.
This is a very basic example, and can be modified as seen fit.

...