Snap to vertices on other layers

image

I am drawing a texture for a 3D model on the Flat Colors layer (which is currently set as “paint” layer but might as well be a vector layer if necessary). I want my line tool (or multiline tool, or bezier curve tool) to snap to vertices on UV layer, but apply changes to Flat Colors layer. Is it possible without writing dedicated plugins?