Unfortunately, players can't just walk into NPC's private rooms in Stardew Valley until they've become friends. This means players will have to befriend Marnie before they can retrieve Mayor Lewis' shorts.