Presume Riker did it the sane way.
Why? He was already being corrupted by his power. He thought demonstrating what he could do was the right thing. All the other gifts were real. He wasn't tempting Worf with a sex toy, but with sex itself. Worf even said so explicitly: "This is sex." The dialog tells us that we are supposed to assume that she was real. She was liveware or the temptation was meaningless.