What you seem to be describing is a 'geon', first investigated by Andrew Wheeler:
https://journals.aps.org/pr/abstract/10.1103/PhysRev.97.511
From the abstract:
"Associated with an electromagnetic disturbance is a mass, the gravitational attraction of which under appropriate circumstances is...