You can only get to this room when you've done every other puzzle that's available to you. The detached room will be the next to last room in the game (the attic is last).