It is considered to be very rude and intrusive to walk in on someone while they are in the shower because they are in a state of being undressed and vulnerable
Consider the statement "I walked in on my friend coming out of the shower.". Based on this "I walked in on my friend while they were coming out of the shower and it was really awkward" a true statement? Yes, no, or I don't know?