Mesoscopic physics between photonic and electronic systems