What does this dotted box mean in the viewport?
You might have pressed Shift+T, or enabled Texture Space in the Object tab of the Properties panel.



The size and location of the Texture Space are found here, in the Object Data tab: