A workaround for my problem with window border/shadow lingering where it shouldn't seems to be to use the dock icon to switch between the two gnucash windows. It only happens when using the mouse to bring a window into focus.
(Thanks Linjo, don't know how I manged that)