Practice ILS legality

Weird question. Is this legal?

I am a private pilot with an instrument rating.

Can I fly a practice ILS (after getting approval and vectors from approach) if I do not have a safety pilot? I would be in VMC, NOT wearing a view-limiting device, just tuning in to the localizer so the needles come alive. My attention would be focused outside. I would not log the approach or use it as proficiency.

My friend is interested in ATC procedures and wants to see first hand how an instrument approach works.