Does it matter whether the gate faces the library door or the children's room?

It's best not to, because, according to the normal attention direction of people, when guests enter the door, they first look at the direction facing the door. However, it's okay not to put anything in the study that is inconvenient for others to see. For children, you still have to take care of them nearby and stay far away. Suppose there is anything uncomfortable, you can find it in time.