I borrowed a tip from multiple solutions to make something easy. Basically when I focus something I want it to appear, but if I click out of it, I want it to hide again. So, if I click on something INSIDE the div that appeared, my click then goes to see if it finds a parent called "DivHoldingcustomController". If so, do nothing. If it does not (because I clicked somewhere else, so whateve I clicked on does not have this parent), then hide the custom controller.
$(document).on("click", function (event) {
var groupSelectorArea = $(event.target).closest(".DivHoldingCustomController").length == 1;
if (!groupSelectorArea)
$(".SomethingIWantToHide").hide();
});