Heating your house with electricity is extremely inefficient. 5KW of "excess" electricity won't go very far in heating your house when it's cold outside, and any excess you might have will be less in the winter because of your latitude.
I'm not saying you can't do it, but even with today's cheap solar panels it's not likely to be a good value proposition.
Heating your house _directly_ with electricity is inefficient. Using that electricity to run a heat pump can be very efficient (assuming you have a large enough heat reservoir (e.g. a few hundred feet of pipe buried underground))
Turning electricity into heat isn't all the work you can get out of the energy. Heat pumps get even more, by using the energy to move heat from one place to another (e.g from ambient outside air to the volume to be heated), and the heat from this process also heats the volume.
If the air outside my house is warmer than the air inside my house, I'll just open the windows. Generally when one needs a heater it is because the system surrounding the house is colder, sometimes much colder, than the house itself.
Cold makes it harder on the heat pump, but not impossible. Heat pumps use a compressor (just like AC unit). If the pump can create a mass of gas colder than the outside air, then that mass will be warmed by the outside air (no matter what the absolute temps are).
In the limit of course (too cold outside), a heat pump is just as efficient as using the electricity for heat directly.
If that electrical energy was generated from gas, then it's often more efficient to burn the gas directly for heat. So depends when you take as the starting point for 100%
I'm not saying you can't do it, but even with today's cheap solar panels it's not likely to be a good value proposition.