A shut-in is someone who is ill for a long time, and has to stay in bed or at home. Meals on Wheels or similar programs that bring outside life to shut-ins. someone who is ill or disabled and cannot leave their house very easily
If you shut yourself in a room, you stay in there and make sure nobody else can get in. After one particular bad result, he shut himself in the shower room for an hour see also shut-in
If you shut someone or something in a room, you close the door so that they cannot leave it. The door enables us to shut the birds in the shelter in bad weather