Hyundai is exploring a midgate for future trucks, and a new patent shows how it plans to keep water out of the cabin.