I have been practicing heaving to on my Beneteau 311 on and off over the last few years. In higher winds the sails have to be reefed down, but up to 20 kn full sails are OK for heaving to, but if you have a reef in that is fine. I have a 116% jib (standard max size on this boat), and the main and jib are about the same area. In moderate winds, try tacking from close hauled (or nearly so) onto the other tack and leave the jib sheet alone. Let the main fall off to leeward and see how it goes. As the boat slows turn the wheel to windward (or tiller to leeward) and find out how the boat settles. You should be pointed somewhat above a reach and drifting nearly sideways. If the boat falls off to leeward too much tighten the mainsheet a little or roll up some jib. Above 20 or 25 kn you may do better with just the main, possibly reefed. The boat may be forereaching a little, which usually is fine, but the GPS will probably show drift mostly sideways at maybe a knot.
Heaving to is not just a storm tactic. If you are alone or shorthanded, heaving to is great for tending to something down below, like making a sandwich or a meal, changing clothes, or digging something out of storage. A couple months ago I was out on Lake Erie waiting for the Aurora Borealis to show itself, and I decided to heave to rather than endlessly heading back and forth in the dark while waiting, and to observe the Aurora when it arrived.
To resume sailing, just release the windward sheet, sheet in the sails, and resume sailing. If you want to resume sailing on the original course before heaving to, you can also just bear off without releasing the jib sheet, and circle the long way around with a gybe, and head off on the original tack (but probably not in a big wind).
Every boat is different, and modern boats with smaller keels and light, shallow bows are trickier to heave to, but they mostly will.