When I create a new workspace I cant add it to a custom module

You developer mode is disabled so that is the problem.

You have to enable the developer mode, after then module is appers.

Please apply the command to enabled the developer mode.

bench set-config developer_mode 1

// OR

bench --site [your_sitename] set-config developer_mode 1