With this reframe I was always very up front to the hiring company. "I'm happy where I am but I'm open to interviewing and hearing what you have to offer." It puts you in a pretty powerful negotiating position (assuming you pass the interviews). Then if you like the company remind them that you are happy at your current job and ask for an amount (or hours, PTO, etc) that you would have no hesitation leaving your current job for. No ethical dilemma (in my opinion) and I've definitely accepted some of those offers.
Also it's fun to interview with no pressure to actually land a job. Not a totally fair comparison but my interview success rate at these is way higher than when I was actually looking for a job.
(I also struggle with staying too long in jobs.)
Although, I have never done it either. I've always been too busy at work, and I view the dishonest aspect as the potential lie I have to make up to take off a day from my current job to go interview.
It seems that usually companies pay their long term employees below the market, and they only notice when/if they go job hunting.
I'm currently happy at my job, and don't think I'd like to consider another job any time soon. However, historically, in previous jobs, I usually don't notice that I want to move on, until it's too late, and I'm too burnt out to do well in interviews. It's been recommended to me, by multiple people to interview frequently, even if not interested in changing jobs, to get some practice in. But doing that feels unethical. I frequently consider it, but have never done it because it feels dishonest and unfair.
But then by the time I want to change jobs I'll be burnt out, and and out of practice interviewing, creating a very depressive loop of failing at job interviews, depressing me further.