Semi-Exists: "Pat Hearts Squid" (S12). Basically, Squidward has to room with Patrick in his rock and they switch roles, with Squidward becoming Patrick and vice versa. The episode was a meh 5.5/10 and forgettable, however your idea might be good, if given a good writing team.