Can a ghost enter a Resilient Sphere?

The spell Otiluke’s Resilient Sphere says that nothing can pass through it. The spell Wall of Force says that too, but it also says that the spell extends into the Ethereal Plane, preventing ethereal travel. From this, my understanding is that a ghost could move through the sphere but wouldn’t be able to damage the creature inside by using it’s Etherealness action to move to the Ethereal Plane, then moving to overlap the creature, then using Etherealness to return. Is this correct? Or does something stop the ghost from returning to the Material Plane?