A naked woman lying in bed realised she was being spied on by a neighbour when she saw a mirror - and then a smartphone - outside her window, a court heard on Thursday.