Easily tell if focused on VirtualBox window?

If Ubuntu is your host and you have Compiz enabled, you could use the "ADD Helper" setting in the CompizConfig Settings Manager. This will "dimm" all but the active window. Note - this will apply to all windows, not just Virtualbox.