In the final level of Year 2 (Chamber of Secrets), the girls' bathroom (Moaning Myrtle's) becomes accessible only after you obtain the Basilisk Fang during the boss fight sequence. The Fang is the key item that unlocks the bathroom entrance for exploration and further collectibles.