It is very simple. Just put [WebBrowsable(true), Personalizable(true)] above your property in code. (There are much more attributes – FYI).
Here is the sample source code:

public class testxyz : System.Web.UI.WebControls.WebParts.WebPart
{
private string _strHello = "blah";
public testxyz()
[...]