I searched it up
Ghosts can possess easily when the sheath of the gross body is separated from the mental sheath (Manodēha), e.g. in dream state, state of despair etc. In some cases, this can happen even in a meditative state. Only a higher level ghost can take advantage of the subtle-body being separated from the gross body during meditation.