Is there a way to isolate an area of a mesh when Weight Painting?
Using the button I have highlighted in the screenshot will basically translate what you see and have selected in edit mode, to weight paint mode.

So if I hid the top rim of the cup in edit mode, with that button enabled it's hidden in weight point mode.

You will need to have whatever faces you DO want to paint on selected however.