does the lua gui allow for a method of showing the current sample’s waveform and modifying it?
The current API allows you to access all points of the wave. So you can draw those points in your tool window and update them if you modify the wave.
There is no GUI object that allows you to do that. But you can create it yourself, although it is not easy.