[Geometry Nodes]Output an Attribute as Vertex Group?

So I was experimenting with Geometry Nodes and used it to spawn a grid of objects, then made some of them invisible using Attribute Sample Texture + scaling points to zero. Is there a way to create a vertex group on the resulting geometry, to use with something like Mask modifier, since the hidden geometry is still there? Or a way to delete point instances inside geonodes?