You can do it, but it wont be pleasant gettin the tea down....
Your best bet will prly be to make some oil out of the vaped stuff (try the QWISO tech, using isopropanyl and only about 10 seconds of wash time, shorter the better) and then just throw your whole oil batch into some brownies or cookies. Takes two minutes to dissolve the oil in the butter or vegetable oil in the recipe, then just make them like normal.
Using the vaped remains directly in cooking will give you a very strong taste of vaped weed, that stale popcorny off-taste. remember, we're gettin the very last little bits out of some pretty planty material at this point, so dont overdo it.