Authorizing an owner of a residential dwelling to create and rent a companion apartment if the residential dwelling meets specified requirements; requiring a companion apartment to meet specified standards; requiring structural changes made to create a companion apartment to be removed if the residential dwelling ceases to be owner-occupied; prohibiting a homeowners association or cooperative housing corporation from revoking permission for the creation and rental of a companion apartment under specified circumstances; etc.