I am replacing an old built in vanity with a drop-in replacement. The replacement has built in outlets on one side. As you can see in the picture, the vanity has a hole to pass the cord through on the back side, but my plan was to drill a new hole in the side of the vanity and place an outlet directly on the other side of the hole so I can push the vanity right up against the corner and not strain the plug.
I cut away some drywall to take a look and I have easy access to pigtail off of an outlet whose receptacle is on the other side of the wall. Since this is not a GFCI outlet, I would have to figure a way to make the new outlet GFCI protected (could I just add a GFCI receptacle and call it good?). The alternative would be to pigtail off the existing GFCI protected bathroom outlet, but I would have to cut more drywall which I would like to avoid if possible.
Is it even safe to have any outlet in this position given the sink in close proximity? I would imagine that the manufacturer of this vanity wouldn't be selling it with outlets in this position if it wasn't safe but I'm not sure. I'm in the United States for code compliance.
Thanks for any advice.