Focusing through an interface: scanning and localizing the intensity