We ask other parents to leave for a while if a wee baby is dying, also during a code, its better that other parents are not present. i guess our intensive care area is like yours, we also have to use screens between the bays. But mostly, other families will leave the unit when we need them to.
One particularly bad exception, was when we had a dying baby in one bay, all the family in to say goodbye, and no-where else to move that baby to, as our quiet room was full already. In the next bay, was a poor wee guy, up for adoption, with parents on the missing list. They NEVER showed their faces until that afternoon when the poor family next to them were saying goodbye to their precious baby. turned up absolutely drunk and stinking, the smell was so bad that one of my co-workers vomited. Worst thing was, we had to keep them there until Police and social services arrived, as they were wanted for multiple stuff by both agencies. mental abuse to the family that were grieving..yes! Sticks in my mind to this day, but, we had to try to keep them in the unit, and the situation was terrible.
Aside from that one awful incident, yes, respect is given to the families of the infant who is dying/coding. Sometimes you feel like its all you can do for them, to give them privacy to mourn the loss. And if a baby is coding...you absolutely dont need other parents around to witness the drama.