It can be done with some effort. The ones I have seen split the anchor line locker lid in half. The left half is reinforced, permanently bolted and bonded to the opening. It is used to mount the windlass. The right half of the original lid is modified so as to be hinged and allow access to the rode locker. If you just split the lid without building a channel to divert water, rain and splash will run into the locker.
The locker is not super deep so the amount of line that will fall may be limited. The type of anchor roller in or on the pulpit may affect performance. A hinged roller ( front end is movable) can work better for deployment.
The hard part can be the electric. The power may have to run above the cabin liner. If a windlass was an original option, wires may be there. Some/many of the winlass options require a fairly large current draw and therefore larger cables. If you have wires in place, look up what current they can carry and select a windlass with that in mind. Depending on your total accessory load, your present wiring from the battery to the helm, may not be adequate to support the current needed. In that case, you will need to run both positive and negative new cables back to the battery compartment. You will also need to install a suitable breaker in the battery compartment.
You will need to install a few other pieces of hardware to lock the anchor chain when not in use etc.