Based on Valheim's mechanics, the workbench has to be constructed inside an enclosed vicinity with a roof. Additionally, it can also be used to stop enemies from spawning inside the area of interest.