The door is open only to the player who clicked on all the hats.
When the player enters the room for the first time, they will receive the 'Secret Finder' badge. The secret room is located through a hatch in the ground opposite of the lighthouse and is behind the pink door. The hatch is closed and can only be opened if the player clicks on the five hats hidden around the map.