In Victorian times, front lawn vegetable gardens were common, even within towns and villages. The way it was done was to use curving, attractive beds where the vegetables were interplanted with flowers, with the mixed beds surrounding patches of lawn.
This can also make for good OPSEC: carrots and cosmos have similar leaves, cherry tomatoes do not require staking and are unobtrusive when interplanted with similarly colored low growing flowers. Lettuces, spinach and other greens can also be gracefully scattered about.
Most of the harassment of suburbanites who are farming their front lawns appears to be due to aesthetics. The horrible truth: Straight rows, bare dirt, and things tied to wooden stakes aren’t all that pretty. Raised beds made of plywood look awful, but the same raised beds edged in rocks or brick look nice.
The Victorian solution should solve the problems for most, though not all types of vegetables.
On the other hand, I have noticed over the years that once preppers get working on solving a problem, creative and clever solutions crop up like weeds.