Viewer pane locking can be done already. Make a button or hotkey which runs this:
Set VIEWPANELOCK=Toggle