You can defend against monsters by building and upgrading weapons inside your room. If monsters attack your door, you can press the "Repair" button to fix it.